<template>
	<view>
		<page-head ref="pageHead" :title="'森歌官方商城-我的'" :headtype="1"></page-head>
		<view class="mybg">
			<image class="bgimg" src="https://fx.senge.com/uploads/mini/sengeimg/my_bgx.png"></image>
			<!-- <image class="bgimg" :src="URLimg +'uploads/mini/sengeimg/my_bg.png'"></image> -->
			<view class="userinfo flex-center">
				<image class="head" :src="userInfo.avatar" v-if="isLogin"></image>
				<image class="head" src="../../static/image/wxmr.png" v-if="!isLogin" @click="getlogin()"></image>
				<view class="user">
					<view class="nametop flex">
						<view class="name ellipsis" v-if="isLogin">{{userInfo.nickname}}</view>
						<view class="name" v-if="!isLogin" @click="getlogin()">点击登录</view>
						<view class="sets flex-start">
							<view class="topinfo" @click="apifun.navigate('/pages/mine/invite_fans')"><image src="../../static/image/gengduo.png"></image></view>
							<view @click="apifun.navigate('/bundle/pages/user_profile/user_profile')"><image src="../../static/image/set.png"></image></view>
							<view class="topinfo" @click="apifun.navigate('/bundle/pages/notice/notice')">  
								<image src="../../static/image/info.png"></image>
								<!-- <view class="infonumber">3</view> -->
							</view>
						</view>
					</view>
					<!-- <view class="vip" v-if="isLogin">{{userInfo.level_name}}</view> -->
					<image v-if="userInfo.level==1" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/my_py.png" mode=""></image>
					<image v-if="userInfo.level==2 && userInfo.user_type==0||userInfo.level==2 &&userInfo.user_type==1" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/mypttk.png" mode=""></image>
					<image v-if="userInfo.level==2 && userInfo.user_type==2" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/myzysqtk.png" mode=""></image>
					<image v-if="userInfo.level==3 && userInfo.level_type==0" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/mysqtk.png" mode=""></image>
					<image v-if="userInfo.level==3 && userInfo.level_type==2" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/myzjtk.png" mode=""></image>
					<image v-if="userInfo.level==4" class="vip_img" src="https://fx.senge.com/uploads/mini/sengeimg/myjxs.png" mode=""></image>
					<view class="vip" v-if="!isLogin" @click="getlogin()">登录体验</view> 
				</view>
			</view>
			<view >
				<image class="jssimg" v-if='userInfo.level == 4' src="https://fx.senge.com/uploads/mini/sengeimg/zl_4.png" mode=""></image>
				<image class="jssimg" v-if='userInfo.level == 3' src="https://fx.senge.com/uploads/mini/sengeimg/zl_3.png" mode=""></image>
				<image class="jssimg" v-if='userInfo.level == 2' src="https://fx.senge.com/uploads/mini/sengeimg/zl_2.png" mode=""></image>
				<!-- <image class="jssimg" v-if='userInfo.level == 1' src="https://fx.senge.com/uploads/mini/sengeimg/zl_1.png" mode=""></image> -->
			</view>
			<view class="gradebox flex margin30" style="margin-bottom: 70rpx;" v-if='userInfo.level == 1 '>
				<view class="graderow" @click="apifun.navigate('/bundle/pages/user_wallet/user_wallet')">
					<view class="gradenum">{{userInfo.user_money||0.00}}</view>
					<view class="gradetext">我的余额</view>
				</view>
				<view class="graderow" @click="apifun.navigate('/bundle/pages/integralMall')">
					<view class="gradenum">{{userInfo.user_integral ||0}}</view>
					<view class="gradetext">我的积分</view>
				</view>
				<view class="graderow" @click="apifun.navigate('/bundle_b/pages/user_coupon/user_coupon')">
					<view class="gradenum">{{userInfo.coupon||0}}</view>
					<view class="gradetext">我的卡券</view>
				</view>
			</view>
		</view>
		<!-- <view v-if='userInfo.level == 2' style="height: 54rpx;"></view> -->
		<view class="four margin30" v-if='userInfo.level == 2 || userInfo.level == 3'>
			<view class="fourrow" @click="apifun.navigate(userInfo.level == 3? '/bundle_b/pages/level-two':'/bundle_b/pages/level-four')">
			<view class="fourrows" style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr5.png);">
				<view class="fournum">{{userInfo.leader_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">会员人数</view> 
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/dataTJnew')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr1.png);">
				<view class="fournum">{{userInfo.xz_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">新增人数</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/today')" v-if='userInfo.level == 3'>
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Group40.png);">
				<view class="fournum">{{userInfo.day_shop}}</view>
				<view class="fourbox flex">
					<view class="fourtext">今日进店</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
<!-- 			<view class="fourrow" @click="apifun.navigate('/bundle/pages/customerZhipai')" v-if='userInfo.level==3'>
			<view class="fourrows"   style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr2.png);">
				<view class="fournum">{{userInfo.zp_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">新增指派</view>
				</view>
			</view>
			</view> -->
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/handsel?type=0')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Group43.png);">
				<view class="fournum">{{userInfo.shop_dj_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">已付定金</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/userlist/userlist?type=1')"  v-if='userInfo.level == 2'>
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr6.png);">
				<view class="fournum">{{userInfo.user_tag_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">意向用户数</view>
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/handsel?type=1')"  v-if='userInfo.level == 3'>
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr4.png);">
				<view class="fournum">{{userInfo.shop_wait_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">待处理</view>
				</view>
			</view>
			</view>
			<view class="fourrow"@click="apifun.navigate('/bundle/pages/customerZhipainew?type=serve')"  v-if='userInfo.level == 3'>
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr2.png);">
				<view class="fournum">{{userInfo.shop_yy_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">待邀约到店数</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/referrer?type=1')" v-if='userInfo.level == 3'>
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr6.png);">
				<view class="fournum">{{userInfo.apply_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">授权推客申请</view>
				</view>
			</view>
			</view>
		</view>
		<view class="four margin30 " v-if='userInfo.level == 4' >
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/userlist/userlist?type=0')">
			<view class="fourrows" style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr5.png);">
				<view class="fournum">{{userInfo.leader_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">会员人数</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/dataTJnew')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr1.png);">
				<view class="fournum">{{userInfo.xz_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">新增人数</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/today')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Group40.png);">
				<view class="fournum">{{userInfo.day_shop}}</view>
				<view class="fourbox flex">
					<view class="fourtext">今日进店</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/paid')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Group43.png);">
				<view class="fournum">{{userInfo.shop_dj_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">已付定金</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
<!-- 			<view class="fourrow" @click="apifun.navigate('/bundle/pages/orderTrack?type=install')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Group44.png);">
				<view class="fournum">{{userInfo.shop_install_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">待安装</view>
				</view>
			</view>
			</view> -->
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/orderTrack?type=shipping')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr4.png);">
				<view class="fournum">{{userInfo.shop_wait_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">待处理</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow"@click="apifun.navigate('/bundle/pages/customerZhipainew?type=serve')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr2.png);">
				<view class="fournum">{{userInfo.shop_yy_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">待邀约到店数</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle_b/pages/referrer?type=1')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr6.png);">
				<view class="fournum">{{userInfo.apply_count}}</view>
				<view class="fourbox flex">
					<view class="fourtext">推客申请审核</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
			<view class="fourrow" @click="apifun.navigate('/bundle/pages/jxs_QRcode')">
			<view class="fourrows"  style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/Gr7.png);">
				<view class="fournum">{{userInfo.user_places}}</view>
				<view class="fourbox flex">
					<view class="fourtext">经销商二维码</view>
					<!-- <uni-icons  type="forward" size="18" color="#949494"></uni-icons> -->
				</view>
			</view>
			</view>
		</view>
		<!-- 用户 -->
<!-- 		<view class="dhbgimg margin30" style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/my_hy.png);'"
		v-if='userInfo.level == 1 || userInfo.level == undefined'>
			<view class="member " style=" background-color: transparent;">
				<view class="membercontent flex" style="padding-top: 62rpx;">
					<view class="memberrow" v-for="(item,index) in member" :key="index" @click="apifun.navigate(item.url)">
						<image style="width: 90rpx; height: 90rpx;" :src="item.img"></image>
						<view class="memberrowtext">{{item.text}}</view>
						<view class="memberrowtxt">{{item.txt}}</view>
					</view>
				</view>
			</view>
		</view> -->
		<!-- 用户 -->
		<!-- 推客 -->
		<view v-if="userInfo.level != 2 && userInfo.level != 3 && userInfo.level != 4" style="height: 60rpx;"></view>
		<!-- v-if='userInfo.level == 1||userInfo.level == 2||userInfo.level == 3||userInfo.level == 4|| userInfo.level == undefined' -->
		<view class="member margin30" style="background-color: #7e2b27;" v-if='userInfo.level == 1'>
			<view class="membertop flex">
				<view class="membertit" style="color: #fff;">订单信息</view>
				<view class="membergd flex-start" @click="apifun.navigate('/pages/mine/orderList?type=all')"> 
					<view class="member_gd" style="color: #fff;">查看所有订单</view>
					<uni-icons  type="forward" size="18" color="#fff"></uni-icons>
				</view>
			</view>
			<view class="membercontent flex" style="background-color: #fff; border-radius: 14rpx;">
				<view class="memberrow" v-for="(item,index) in order" :key="index" @click="apifun.navigate(item.url)">
					<image style="width: 82rpx; height: 82rpx;" :src="item.img"></image>
					<view class="memberrowtext">{{item.text}}</view>
				</view>
			</view>
		</view>
		<!-- 推客 -->
		<view class="member margin30" style="background-color: #ffefef;" v-if='userInfo.level == 2||userInfo.level == 3||userInfo.level == 4'>
			<image style="width: 100%;height: 130rpx; font-size: 0;" src="https://fx.senge.com/uploads/mini/sengeimg/mySlice.png" mode=""
			@click="apifun.navigate('/bundle_b/pages/user_spread_order/user_spread_order?type=0')"></image>
			<!-- <view class="membertop flex" style=" background: linear-gradient(to right, #d7f8f3, #d7e8f7);">
				<view class="membertit">分销订单</view>
				<view class="membergd flex-start" @click="apifun.navigate('/bundle_b/pages/user_spread_order/user_spread_order?type=0')">
					<view class="member_gd" >查看所有订单</view>
					<uni-icons  type="forward" size="18" color="#949494"></uni-icons>
				</view>
			</view> -->
			<view class="membercontent flex" style="background-color: #ffffff; margin-top: -26rpx;">
				<view  class="memberrow" v-for="(item,index) in FXorder2" :key="index" @click="apifun.navigate(item.url)">
					<image style="width: 106rpx; height: 106rpx;" :src="item.img"></image>
					<view class="memberrowtext" style="color: #000000;">{{item.text}}</view>
				</view>
			</view>
		</view>
		<view class="member margin30" v-if=' userInfo.level == 4'>
			<view class="membertop flex" style=" background: linear-gradient(to right,#fff, #fff);padding-bottom: 0;">
				<view class="membertit">订单跟踪<view class="gang"></view></view> 
				<view class="membergd flex-start" @click="apifun.navigate('/bundle/pages/orderTrack?type=all')">
					<view class="member_gd" >查看所有订单</view>
					<uni-icons  type="forward" size="18" color="#fff"></uni-icons>
				</view>
			</view>
			<view class="membercontent flex" >
				<view class="memberrow" style="margin-top: 20rpx;" v-for="(item,index) in order_track" :key="index" @click="apifun.navigate(item.url)" >
					<image style="width: 94rpx;height: 94rpx;" :src="item.img"></image>
					<view class="memberrowtext">{{item.text}}</view>
				</view>
			</view>
		</view>
		<!-- 推客 -->
		<view class="member margin30" style="background-color: #f8f9fa;" v-if='userInfo.level == 2 || userInfo.level == 3 || userInfo.level == 4'>
			<view class="membertop flex" style="background-color: #ffffff;padding-bottom: 0;">
				<view class="membertit">客户管理<view class="gang"></view></view> 
				<!-- <view class="membergd flex-start">
					<view class="member_gd">查看所有订单</view>
					<uni-icons  type="forward" size="18" color="#949494"></uni-icons>
				</view> -->
			</view>
			<view class="membercontent flex" style="margin-top: -8rpx; background-color: #fff; border-radius: 14rpx;">
				<view class="memberrow" style="background-color: #fff; width: 140rpx; padding: 34rpx 0 18rpx 0; margin: 0 8rpx;border-radius: 14rpx;" 
				v-for="(item,index) in customer" :key="index" @click="apifun.navigate(userInfo.level==3 && item.text == '客户信息' ? '/bundle_b/pages/level-two': userInfo.level==2 && item.text == '客户信息' ?'/bundle_b/pages/level-four':item.url)"
				v-if='userInfo.level == 2 && item.text != "客户指派" ||userInfo.level==3&&userInfo.level_type==0|| userInfo.level == 4&& item.text!== "客户指派"||userInfo.level==3&&userInfo.level_type==2&& item.text!== "客户指派"' >
					<image style="width: 72rpx; height: 68rpx;" :src="item.img"></image>
					<view class="memberrowtext">{{item.text}}</view>
				</view>
			</view>
		</view>
		<!-- 推客 -->
		<view class="member margin30" style="background-color: #f8f9fa;" v-if='userInfo.level == 2 || userInfo.level == 3 || userInfo.level == 4'>
			<view class="membertop flex" style="background-color: #fff; padding-bottom: 14rpx;">
				<view class="membertit">我的应用<view class="gang"></view></view>
				<!-- <view class="membergd flex-start">
					<view class="member_gd">查看所有服务</view>
					<uni-icons  type="forward" size="18" color="#949494"></uni-icons>
				</view> -->
			</view>
			<view class="membercontent" style="margin-top: -8rpx; background-color: #fff; border-radius: 14rpx;">
				<view style="width: 50%;" v-for="(item,index) in adhibition" :key="index" @click="apifun.navigate(item.url)"
				 v-if='userInfo.level == 2 && item.text != "优惠券管理"&& item.text != "推客龙虎榜"||userInfo.level==3&& item.text!== "我的订单"|| userInfo.level == 4 && item.text!== "优惠券管理"&& item.text!== "佣金提现"&& item.text!== "我的订单"' >
					<image style="width: 100%;" mode="widthFix" :src="item.img"></image>
				</view>
			</view>
		</view>
		<!-- 推客 -->
<!-- 		<view class="member margin30" v-if='userInfo.level == 3 || userInfo.level == 2'> 
			<view class="membertop flex">
				<view class="membertit">其他服务</view>
				<view class="membergd flex-start">
					<view class="member_gd">查看所有服务</view>
					<uni-icons  type="forward" size="18" color="#949494"></uni-icons>
				</view>
			</view>
			<view class="membercontent flex">
				<view class="memberrow" v-for="(item,index) in elselist" :key="index" @click="apifun.navigate(item.url)">
					<image :src="item.img"></image>
					<view class="memberrowtext">{{item.text}}</view>
				</view>
			</view>
		</view> -->
		<!-- 用户 -->
		<view style="margin-top: 40rpx;" class="member margin30" v-if='userInfo.level == 1||userInfo.level == 2||userInfo.level == 3||userInfo.level == 4||userInfo.level == undefined'>
			<image class="myqt" @click="apifun.navigate('/bundle/pages/discounts/discounts?type=3')" style="background-image: url(https://fx.senge.com/uploads/mini/sengeimg/myqt.png)" mode=""></image>
			<view class="membercontent flex">
				<view class="memberrow" v-for="(item,index) in menuList" :key="index"
				 @click="menuJump(item)">
					<image :src="item.image"></image> 
					<view class="memberrowtext">{{item.name}}</view>
				</view>
			</view>
		</view>
		<view class="indexIconBox">
			<view><button  open-type="contact" hover-class="btn-hover"><image class="indexIcon" src="../../static/image/indexIcon1.png" mode=""></image></button></view>
			<view v-if="userInfo.level!==4">
				<router-link class="" :to="{path: '/pages/mine/invite_fans'}">
					<image class="indexIcon" src="../../static/image/indexIcon2.png" mode=""></image>
				</router-link>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		toLogin
	} from '@/utils/login'
	import { mapMutations, mapActions, mapGetters} from "vuex";
	import {
		getMenu
	} from '@/api/store'
	import {
		getUser
	} from '@/api/user'
	import {
		menuJump,
		copy
	} from '@/utils/tools'

	export default {
		data() {
			return {
				URLimg:'',
				userInfo:{},
				IDtype: 1,  
				menuList: [],
				// userInfo: {level:3},
				member:[ 
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/my_h1.png',text: '会员专属礼券',txt: '下单立减',url:'/bundle/pages/discounts/discounts?type=3'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/my_h2.png',text: '积分兑换',txt: '积分兑礼',url:'/bundle/pages/discounts/discounts?type=3'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/my_h3.png',text: '一对一客服',txt: '贴心服务',url:'/bundle/pages/discounts/discounts?type=3'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/my_h4.png',text: '专享福利活动',txt: '福利多多',url:'/bundle/pages/discounts/discounts?type=3'},
				],
				order:[ //推客、用户
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/mydd1.png',text: '待付款',url:'/pages/mine/orderList?type=pay'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/mydd2.png',text: '已付款',url:'/pages/mine/orderList?type=delivery'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/mydd4.png',text: '确认收货',url:'/pages/mine/orderList?type=receiving'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/mydd5.png',text: '退款/售后',url:'/bundle_b/pages/after_sales/after_sales'},
				],
				FXorder:[
					{img: '/static/image/tt3.png',text: '待付款',url:'/bundle/pages/invite'},
					{img: '/static/image/t5.png',text: '待结算',url:'/bundle/pages/invite'},
					{img: '/static/image/t6.png',text: '已结算',url:'/bundle/pages/invite'},
				],
				FXorder2:[//有订单列表页面   
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group1.png',text: '全部',url:'/bundle_b/pages/user_spread_order/user_spread_order?type=0'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group2.png',text: '待结算',url:'/bundle_b/pages/user_spread_order/user_spread_order?type=1'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group3.png',text: '已结算',url:'/bundle_b/pages/user_spread_order/user_spread_order?type=2'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group4.png',text: '退款/售后',url:'/bundle_b/pages/user_spread_order/user_spread_order?type=3'},
				],
				order_track:[
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group24.png',text: '全部',url:'/bundle/pages/orderTrack?type=all'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group21.png',text: '客户指派',url:'/bundle/pages/orderTrack?type=serve'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group22.png',text: '确认尾款',url:'/bundle/pages/orderTrack?type=final'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group23.png',text: '确认发货',url:'/bundle/pages/orderTrack?type=shipping'},
				],
				customer:[
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group46.png',text: '客户信息',url:'/bundle/pages/userlist/userlist?type=0'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group52.png',text: '客户分析',url:'/bundle/pages/userlist/userlist?type=1'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group45.png',text: '行为记录',url:'/bundle/pages/userlist/userlist?type=2'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group47.png',text: '客户指派',url:'/bundle/pages/customerZhipainew'},
				],
				adhibition:[
					// {img: '/static/image/t13.png',text: '商品管理',url:'/bundle/pages/invite'},
					// {img: '/static/image/t25.png',text: '商品佣金设置',url:'/bundle/pages/invite'},
					// {img: '/static/image/t14.png',text: '售后管理',url:'/bundle/pages/service'},
					// {img: '/static/image/t10.png',text: '推客管理',url:'/pages/mine/invite'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group-49.png',text: '我的订单',url:'/pages/mine/orderList?type=all'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group48.png',text: '优惠券管理',url:'/bundle/pages/coupon'},
					// {img: '/static/image/t11.png',text: '佣金提现',url:'/bundle/pages/drawMoney'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group50.png',text: '佣金提现',url:'/bundle_b/pages/user_withdraw/user_withdraw'},
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group49.png',text: '推客龙虎榜',url:'/bundle/pages/sellnew'},//可能是 销售榜单 页面
					{img: 'https://fx.senge.com/uploads/mini/sengeimg/Group51.png',text: '数据统计',url:'/bundle/pages/dataTJ?activenav1=0&activenav=0'},
					// {img: '/static/image/t16.png',text: '活动创建',url:'/bundle/pages/invite'},
					//{img: '/static/image/t16.png',text: '经销商入驻',url:'/bundle_b/pages/store_settled/store_settled'},
				],
				elselist:[
					{img: '/static/image/p5.png',text: '积分兑换',url:'/pages/mine/invite'},
					{img: '/static/image/p5.png',text: '兑换记录',url:'/pages/mine/invite'},
					{img: '/static/image/p16.png',text: '邀请有礼',url:'/pages/mine/invite'},
					{img: '/static/image/j20.png',text: '收货地址',url:'/pages/mine/invite'},
					{img: '/static/image/p7.png',text: '我的卡券',url:'/pages/mine/invite'},
					{img: '/static/image/p12.png',text: '客服帮助',url:'/pages/mine/invite'},
					{img: '/static/image/j21.png',text: '账号设置',url:'/pages/mine/invite'},
					{img: '/static/image/j22.png',text: '经销商二维码',url:'/pages/mine/invite'},
				]
			}
		},
		onLoad() {
			// this.getlogin()
			// this.URLimg = this.apifun.URLimg
			// console.log('this.URLimg',this.URLimg)
			this.getCartNum()
			
			var that=this
			setTimeout(function(){
				that.$refs.pageHead.getTopHeight()
			},200)
			
		},
		onShow(){
			
			this.getUserInfo();
			this.getMenuFun()
		},
		computed: {
		    ...mapGetters(["appConfig"]),
		},
		methods: {
			...mapActions(['getCartNum']),
			goToExplain(value) {
				this.$Router.push({ 
					path: '/bundle/pages/server_explan/server_explan',
					query: {
						type: value
					}
				})
			},
			async getUserInfo(){
				const {
					data,
					code
				} = await getUser({})
				if (code == 1) {
					this.userInfo = data
					// this.level_level = data.level
					// console.log('333',this.level_level)
					uni.setStorageSync('userInfo' , this.userInfo)
				}
			},
			getlogin(){
				if(!this.isLogin){
					// toLogin()  
					uni.navigateTo({
						url:"/pages/login/login"
					})
				}
			},
			async getMenuFun() {
				const {
					data,
					code
				} = await getMenu({
					type: 2,
				})
				if (code == 1) {
					this.menuList = data
					console.log("this.menuList",this.menuList)
				}
			},
			menuJump(item) {
				menuJump(item)
			}
		}
	}
</script>

<style>
	.flex{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	page{
		background-color: #efefef;
		padding-bottom: 120rpx;
	}
	.gang{
		margin-top: 10rpx;
		background-color: #d64d45;
		width: 44rpx;
		height: 4rpx;
		border-radius: 100rpx;
	}
	.mybg{
		position: relative;
	}
	.bgimg{
		width: 100%;
		height: 300rpx;
	}
	.head{
		width: 100rpx;
		height: 100rpx;
		border-radius: 60rpx;
		margin-right: 20rpx;
	}
	.userinfo{
		width: 100%;
		position: absolute;
		top: 36rpx;
	}
	.sets image{
		width: 44rpx;
		height: 42rpx;
		margin-left: 22rpx;
	}
	.topinfo image{
		width: 42rpx;
		height: 40rpx;
	}
	.topinfo {
		position: relative;
	}
	.infonumber{
		background-color: #ff9200;
		font-size: 22rpx;
		color: #fff;
		width: 28rpx;
		height: 28rpx;
		line-height: 28rpx;
		text-align: center;
		border-radius: 30rpx;
		position: absolute;
		top: -18rpx;
		right: -10rpx;
	}
	.nametop{
		width: 560rpx;
/* 		background-color: antiquewhite; */
	}
	.name{
		font-size: 32rpx;
		color: #fafafa;
		margin-bottom: 1rpx;
		width: 560rpx;
	}
	.vip{
		width: 130rpx;
		text-align: center;
		border-radius: 50rpx;
		padding: 0 4rpx;
		font-size: 20rpx;
		background-color: #fff;
		color: #DC504F;
	}
	.dhbgimg{
		background-repeat: no-repeat;
		height: 300rpx;
		background-size: 100%;
		margin: 30rpx;
		margin-top: 74rpx;
	}
	.jssimg{
		width: 718rpx;
		height: 160rpx;
		box-sizing: border-box;
		position: absolute;
		top: 170rpx;
		left: 0;
		right: 0;
		margin: 0 auto;
		border-radius: 20rpx;
	}
	.gradebox{
		width: 718rpx;
		box-sizing: border-box;
		background-color: #fff;
		position: absolute;
		top: 170rpx;
		left: -14rpx;
		padding: 20rpx 32rpx;
		border-radius: 20rpx;
		height: 160rpx;
		background-size: 100%;
	}
	.graderow{
		text-align: center;
		width: 33%;
		box-sizing: border-box;
	}
	.graderow:nth-of-type(1),
	.graderow:nth-of-type(2){
		border-right: #e2d9e2 1rpx solid;
	}
	.gradenum{
		font-size: 34rpx;
		color: #5d3640;
		font-weight: bold;
	}
	.gradetext{
		font-size: 24rpx;
		color: #83656e;
	}
	.numgrades{
		font-style: italic;
		font-size: 38rpx;
	}
	.numgrade{
		font-style: initial;
		font-size: 24rpx;
		margin-left: 6rpx;
	}
	.member{
		margin-bottom: 30rpx;
		background-color: #fff;
		border-radius: 16rpx;
		/* padding: 32rpx 30rpx 14rpx 34rpx; */
	}
	.membertop{
		/* padding-bottom: 22rpx; */
		padding: 28rpx;
		border-radius: 14rpx 14rpx 0 0;
		/* border-bottom: #f8f8f8 1rpx solid; */
	}
	.membertit{
		font-size: 32rpx;
		font-weight: bold;
		color: #d64d45;
	}
	.membergd{
		font-size: 24rpx;
		color: #fff;
	}
	.member_gd{
		margin-right: 6rpx;
		padding-bottom: 4rpx;
	}
	.membercontent{
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		padding: 18rpx 0;
		padding: 14rpx 30rpx;
	}
	.memberrow{
		width: 156rpx;
		text-align: center;
		margin-top: 30rpx;
		margin-bottom: 24rpx;
	}
	.memberrow image{
		width: 50rpx;
		height: 50rpx;
	}
	.memberrowtext{
		margin-top: 10rpx;
		font-size: 24rpx;
	}
	.memberrowtxt{
		margin-top: 2rpx;
		font-size: 24rpx;
		color: #A47173;
	}
	.four{
		/* background-color: #fff; */
		margin-top: 56rpx;
		margin-right: 32rpx;
		margin-bottom: 14rpx;
		border-radius: 30rpx;
		/* padding: 40rpx 40rpx 20rpx 40rpx; */
		display: flex;
		/* justify-content: space-between; */
		flex-wrap: wrap;
	}
	.fourrow{
		width: 160rpx;
		margin-bottom: 20rpx;
		margin-right: 12rpx;
	}
	.fourrows{
		width: 164rpx;
		background-repeat: no-repeat;
		height: 100rpx;
		background-size: 100%;
		padding: 10rpx;
		box-sizing: border-box;
	}
	.sixrow{
		width: 196rpx;
		padding: 12rpx 18rpx;
	}
	.fournum{
		font-weight: bold;
		font-size: 34rpx;
	}
	.fourtext{
		margin-top: 8rpx;
		font-size: 20rpx;
	}
	/* 改 */
	.vip_img{
		width: 170rpx;
		height: 44rpx;
	}
	.myqt{
		width: 100%; 
		height: 140rpx; 
		margin-top: -28rpx; 
		background-repeat: no-repeat;
		background-size: 100%;
	}
	.indexIcon{
		width: 100rpx;
		height: 100rpx;
	}
	.indexIconBox{
		position: fixed;
		right: 20rpx;
		bottom: 160rpx;
	} 
</style>
